<?php 
include("header.php");

require("Database.singleton.php");
$db = Database::obtain(DBADDR, DBUSER, DBPWD, DBNAME);
$db->connect();

$sql = "SELECT * FROM `website`";

$record = $db->query_first($sql);

$db->close();


?>
<script type="text/javascript" src="js/nicEdit.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
</script>
<!--  start page-heading -->
<div id="page-heading">
<h1>Kachmir Consultancy</h1>
</div>
<!-- end page-heading -->

<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
<tr>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
<th class="topleft"></th>
<td id="tbl-border-top">&nbsp;</td>
<th class="topright"></th>
<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
</tr>
<tr>
<td id="tbl-border-left"></td>
<td>
<!--  start content-table-inner ...................................................................... START -->
<div id="content-table-inner">

<!--  start table-content  -->
<div id="table-content">
<?php
if(isset($_GET['succ']) && $_GET['succ']==1){
	$msg = "modified";

	?>
	<div id="message-green">
	<table border="0" width="100%" cellpadding="0" cellspacing="0">
	<tr>
	<td class="green-left">Restaurant info <?=$msg?> sucessfully.</td>
	<td class="green-right"><a class="close-green"><img src="images/table/icon_close_green.gif"   alt="" /></a></td>
	</tr>
	</table>
	</div>
	<?php
};
?>

<form name="info" id="info" action="editkacok.php" method="post">
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">

<tr>
<td valign="top">
<textarea name="editarea" style="width: 95%;">
<?= $record["infor"] ?>
</textarea>
</td>
</tr>
<tr>
<td valign="top">
<input type="submit" value="ok" class="form-submit" />
<input type="button" value="" class="form-reset" onclick="window.location.href='editkac.php'" />
</td>
</tr>

</table>
</form>
<!--  end product-table................................... --> 
</div>
<!--  end content-table  -->


<!--  start paging..................................................... -->
<!--  end paging................ -->

<div class="clear"></div>

</div>
<!--  end content-table-inner ............................................END  -->
</td>
<td id="tbl-border-right"></td>
</tr>
<tr>
<th class="sized bottomleft"></th>
<td id="tbl-border-bottom">&nbsp;</td>
<th class="sized bottomright"></th>
</tr>
</table>
<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>

<!-- start footer -->         
<div id="footer">
<!--  start footer-left -->
<div id="footer-left">

Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
<!--  end footer-left -->
<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->

</body>
</html>

